package jfox.platform.aaa.bo;

import java.util.List;

import jfox.platform.aaa.entity.User;

/**
 * @author <a href="mailto:thaiguo@gmail.com">Taiguo Zhang</a>
 */
public interface UserBO  {

    User getUserById(long id);

    User getUserByName(String name);

    User getUserByNameAndPassword(String username, String password);

    User getAdministrator();

    User getUnkown();

    User getGuest();

    void newUser(User user);

    List<User> getAllUsers();

    int deleteUser(long userId);
    
    int updateUser(User user);
}
